﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Twodi.Interfaces;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Twodi.Aspect.Implemented
{
    /// <summary>
    /// Define um componente que possui texto.
    /// </summary>
    public class TextAspect : AbstractTextAspect
    {
        /// <summary>
        /// Fonte do texto.
        /// </summary>
        private SpriteFont font;

        /// <summary>
        /// Construtor padrão.
        /// </summary>
        public TextAspect(SpriteFont font)
        {
            this.Font = font;
        }

        /// <summary>
        /// Fonte do texto.
        /// </summary>
        public override SpriteFont Font
        {
            get
            {
                return this.font;
            }
            set
            {
                OnPropertyChanged<SpriteFont>("Font", ref font, value);
            }
        }
    }
}
